using System;
using System.Collections.Generic;
using System.Text;

namespace MUSA
{
    class Rand
    {
        static private Random mRandom = new Random();

        static public int random(int minvalue, int maxvalue)
        {
            return mRandom.Next(minvalue, maxvalue);
        }
        static public float random(float minvalue, float maxvalue)
        {
            return ((float)(mRandom.Next((int)minvalue, (int)maxvalue)) + (float)mRandom.NextDouble());
        }
        static public int random(int maxvavlue)
        {
            return mRandom.Next(maxvavlue);
        }
        static public int random()
        {
            return mRandom.Next();
        }
    }
}
